sysroot: Cleanup refs and prune even on last undeployment
authorColin Walters <walters@verbum.org>
Thu, 24 Sep 2015 15:00:54 +0000 (11:00 -0400)
committerColin Walters <walters@verbum.org>
Thu, 24 Sep 2015 16:25:23 +0000 (12:25 -0400)
commitbab6503b69011b6b724492a28e7c490580522120
treebcb2b3560d7df85591c4177226a3872c263417a1
parente21188a24568a884c4a0b192dc2dc48a571b98b2
sysroot: Cleanup refs and prune even on last undeployment

I was working on a different test, and ended up being very confused at
the behavior where removing the last deployment didn't remove the last
`ostree/X/X/X` ref pointing to its commit.

There's no reason to special case the last undeployment AFAIK, and the
existing code handles this.
Makefile-tests.am
src/libostree/ostree-sysroot-cleanup.c
tests/test-admin-deploy-clean.sh [new file with mode: 0644]